<div class="row-fluid">
    <div class="span12">
        <div style="clear:both; height:20px"></div>
        <ul class="breadcrumb">
            <li>
                <a href="<?php echo $this->Html->url(array("controller" => "home", "action" => "index")); ?>">Home</a>
                <span class="divider">/</span>
            </li>
            <li class="active">
                <a href="<?php echo $this->Html->url(array("controller" => "setting", "action" => "index")); ?>">設定</a>
                <span class="divider">/</span>
            </li>
            <li class="active">編集設定</li>
            
        </ul>

        <div class="row-fluid">
            <div class="span12">
                <div class="widget orange">
                    <div class="widget-title">
                        <h4><i class="icon-reorder"></i> 物件の詳細情報</h4>
                        <span class="tools">
                            <a href="javascript:;" class="icon-chevron-down"></a>

                        </span>
                    </div>
                    <div class="widget-body">
                        <?php
                        echo $this->Form->create('Setting', array(
                            'inputDefaults' => array(
                                'div' => 'control-group',
                                'label' => array(
                                    'class' => 'control-label'
                                ),
                                'wrapInput' => 'controls'
                            ),
                            'class' => 'form-horizontal'
                        ));
                        ?>
                        <?php
                        echo $this->Form->input('Title', array(
                            'placeholder' => 'タイトル',
                            'class' => 'span6',
                            'label' => 'タイトル<span class="required"> *</span>',
                            'type' => 'text',
                            'maxlength' => '19',
                            'required' => false
                        ));
                        ?>
                        <?php
                        if($id == 3){
                        ?>
                        
                        <div class="control-group">
                            <label for="SettingTitle" class="control-label">値<span class="required"> *</span></label>
                            <div class="controls required">
                                <table>
                                    <tr>
                                        <td>
                                <?php
                                    echo $this->Form->input('Value', array(
                                        'placeholder' => '値',
                                        'class' => 'span6',
                                        'label' => false,
                                        'maxlength' => '100',
                                        'required' => false,
                                        'id' => 'ckeditor_custom',
                                        'style' => 'width:100px'
                                    ));
                                ?>
                                         </td>
                                    </tr>
                                    </table>
                            </div>
                        </div>
                        <?php
                            
                        }else{
                            echo $this->Form->input('Value', array(
                                'placeholder' => '値',
                                'class' => 'span6',
                                'label' => '値<span class="required"> *</span>',
                                'maxlength' => '100',
                                'required' => false,
                                'type' => 'text',
                            ));
                        }
                        ?>
                        
                        <div class="form-actions">
                            <button type="submit" class="btn btn-success"><i class="icon-ok icon-white"></i> 保存</button>
                            <div type="button" class="btn btn-info">
                                <a href="<?php echo $this->Html->url(array("controller" => "Setting", "action" => "index")); ?>">
                                    <i class="icon-ban-circle icon-white"></i> 戻る
                                </a>
                            </div>
                        </div>
                        <?php echo $this->Form->end(); ?>
                    </div>
                </div>

            </div>
        </div>




    </div>
</div>